const express = require('express');
const router = express.Router();
const authenticateToken = require('../middleware/authMiddleware');
const { addToCart, updateCart, removeFromCart, getCartItems } = require('../controllers/cartController');

router.post('/', authenticateToken, addToCart);
router.put('/:cartId', authenticateToken, updateCart);
router.delete('/:cartId', authenticateToken, removeFromCart);
router.get('/', authenticateToken, getCartItems);

module.exports = router;